# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=apache-users
pkgver=2.1
pkgrel=7
groups=('blackarch' 'blackarch-scanner')
pkgdesc='This perl script will enumerate the usernames on a unix system that use the apache module UserDir.'
arch=('any')
url='https://labs.portcullis.co.uk/downloads/'
license=('GPL2')
depends=('perl' 'perl-parallel-forkmanager' 'perl-io-socket' 'perl-libwww')
source=("https://labs.portcullis.co.uk/download/apache_users-$pkgver.tar.gz")
sha512sums=('ac773567a5bf49104a4e681ef743d1782c990ce7bf00ada913e4477102681f36e0033ba30a6f75d493fb1b69f4393cd27d3f1e2116a5fba587ed9a1a6d632596')

package() {
  cd "$srcdir/apache_users"

  install -Dm 755 "apache${pkgver}.pl" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 names "$pkgdir/usr/share/apache-users/names"
}

